﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Sach.ascx.cs" Inherits="Sach" %>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="GetAllSach" TypeName="BussinessObject.SachController">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="-1" Name="MaLoai" 
            QueryStringField="MaLoai" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>
<asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1" 
    RepeatColumns="3">
    <ItemTemplate>
        <table style="background-image: url('HinhGiaoDienWeb/KhungSanPham1.png'); background-repeat: no-repeat" 
            width="184px">
            <tr>
                <td>
                    &nbsp;</td>
                <td align="center" colspan="3" valign="top">
                    <asp:Image ID="Image1" runat="server" AlternateText="Hình sách" Height="122px" 
                        ImageUrl='<%# Eval("Hinh", "{0}") %>' Width="112px" />
                </td>
                <td align="center" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" colspan="5" valign="top">
                    <img alt="" src="HinhGiaoDienWeb/GachNgangNgan.png" 
                        style="width: 128px; height: 7px" /></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td align="center" colspan="3" valign="top" 
                    style="font-size: small; font-weight: bold; color: #0099FF">
                    <asp:Label ID="TenSachLabel0" runat="server" Font-Bold="True" Font-Size="Small" 
                        ForeColor="#0099FF" Text='<%# Eval("TenSach", "{0}") %>' />
                </td>
                <td align="center" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    &nbsp;</td>
                <td align="left" 
                    style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #0099FF" 
                    valign="middle">
                    Giá bìa:</td>
                <td>
                    &nbsp;</td>
                <td align="left" valign="top">
                    <asp:Label ID="GiaBiaLabel0" runat="server" Font-Size="Small" 
                        Font-Strikeout="True" ForeColor="#0099FF" Text='<%# Eval("GiaBia") %>' />
                </td>
                <td align="left" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    &nbsp;</td>
                <td align="left" 
                    style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #0099FF" 
                    valign="middle">
                    Giá bán:</td>
                <td>
                    &nbsp;</td>
                <td align="left" valign="top">
                    <asp:Label ID="GiaBanLabel0" runat="server" Font-Bold="True" Font-Size="Small" 
                        ForeColor="#0099FF" Text='<%# Eval("GiaBan") %>' />
                </td>
                <td align="left" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    &nbsp;</td>
                <td align="left" 
                    style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #0099FF" 
                    valign="middle">
                    Tác giả:</td>
                <td>
                    &nbsp;</td>
                <td align="left" valign="top">
                    <asp:Label ID="TacGiaLabel0" runat="server" Font-Size="Small" 
                        ForeColor="#0099FF" Text='<%# Eval("TacGia.TenTG") %>' />
                </td>
                <td align="left" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    &nbsp;</td>
                <td align="left" 
                    style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #0099FF" 
                    valign="middle">
                    NXB:</td>
                <td>
                    &nbsp;</td>
                <td align="left" valign="top">
                    <asp:Label ID="NXBLabel0" runat="server" Font-Size="Small" ForeColor="#0099FF" 
                        Text='<%# Eval("NXB.TenNXB") %>' />
                </td>
                <td align="left" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    &nbsp;</td>
                <td align="left" 
                    style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #0099FF" 
                    valign="middle">
                    Loại:</td>
                <td>
                    &nbsp;</td>
                <td align="left" valign="top">
                    <asp:Label ID="LoaiLabel0" runat="server" Font-Size="Small" ForeColor="#0099FF" 
                        Text='<%# Eval("Loai.TenLoai") %>' />
                </td>
                <td align="left" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" valign="top">
                    &nbsp;</td>
                <td align="center" colspan="3" valign="top" 
                    style="font-size: small; font-weight: bold; color: #0099FF">
                    <asp:HyperLink ID="linkChiTietSach" runat="server" Font-Size="Small" 
                        ForeColor="#0099FF" 
                        NavigateUrl='<%# Eval("MaSach", "ChiTietSach.aspx?MaSach={0}") %>'>Chi tiết sách</asp:HyperLink>
                </td>
                <td align="left" valign="top">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" colspan="5" height="2px" valign="top">
                    <img alt="" src="HinhGiaoDienWeb/0.PNG" 
                        style="width: 10px; height: 10px" /></td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>
